-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gate LLVMRustHasFeature on LLVM_RUSTLLVM #43579
Conversation
Commit c471020 in rust-lang#43492 make `LLVMRustHasFeature` "more robust" by using `getFeatureTable()`. However, this function is specific to Rust's own LLVM fork, not upstream LLVM-4.0, so we need to use `#if LLVM_RUSTLLVM` to guard this call.
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors: r+ Thanks! |
📌 Commit 881a724 has been approved by |
More generally, I worry that this is a regression in |
Yeah I think this is fine for now in terms of fixing the regression, but certainly before stabilizing |
The vaguely annoying issue is that the feature check before was working as long you do not try to expose more features than the ones exposed by the earliest version of LLVM supported. Since I wanted to expose more features on PowerPC I ended up trying to avoid segfaulting on Thanks for the fix to my mistake on the guards! |
Can you close #43555 as a part of description? |
Sure, updated. |
☀️ Test successful - status-appveyor, status-travis |
Commit c471020 in #43492 make
LLVMRustHasFeature
"more robust"by using
getFeatureTable()
. However, this function is specific toRust's own LLVM fork, not upstream LLVM-4.0, so we need to use
#if LLVM_RUSTLLVM
to guard this call.Closes #43555.